package com.example.demo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Value("${spring.application.name}")
    private String applicationName;

    @RequestMapping()
    public String index(String str) {
        logger.error("=============日志打印=============");
        return "Hellow World! <br/>This is eureka client " + applicationName + "<br/>" + str;
    }

}
